package com.zoke.dappstore.ui;

import android.os.Bundle;

import com.zoke.dappstore.R;
import com.zoke.dappstore.base.NebActivity;
import com.zoke.neb.fragment.WebFragment;

import org.xutils.view.annotation.ContentView;

@ContentView(R.layout.activity_web)
public class WebActivity extends NebActivity {

    private String url;


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        mTitleBar.setTitle("");
        mTitleBar.setLeft(R.drawable.ic_back, null);
        url = getIntent().getStringExtra("url");
        WebFragment fragment = WebFragment.open(this, R.id.fl_web, url);
        fragment.setWebTitleListener(new WebFragment.WebTitleListener() {
            @Override
            public void onTitle(String title) {
                mTitleBar.setTitle(title);
            }
        });
    }


    @Override
    protected void initImmersionBar() {
        super.initImmersionBar();
        initBar(R.id.status, false);
    }

}
